package com.wtb.javatool.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.criteria.CriteriaBuilder;
import java.io.Serializable;

/**
 * 课程表
 * @author yangzhuoheng
 *
 */
@Data
@ToString
@ApiModel(value = "Comment",description="评论")
@NoArgsConstructor
@AllArgsConstructor
public class Comment implements Serializable {

	private static final long serialVersionUID = 5715043674151551828L;
	@ApiModelProperty(value = "评论id")
	private Integer commentId;
	@ApiModelProperty(value = "评论内容")
	private String commentContent;
	@ApiModelProperty(value = "点赞人数")
	private String likeCount;
	@ApiModelProperty(value = "用户id")
	private Integer userId;
	@ApiModelProperty(value = "资源id")
	private Integer resourceId;
	@ApiModelProperty(value = "互动id")
	private Integer topicId;
	@ApiModelProperty(value = "评分")
	private Double score;

	public Comment(String commentContent, Integer userId,Integer resourceId,Double score) {
		this.commentContent=commentContent;
		this.userId=userId;
		this.resourceId=resourceId;
		this.score=score;
	}
	public Comment(Integer userId,Integer resourceId) {
		this.userId=userId;
		this.resourceId=resourceId;
	}

}